﻿@model FILSTARTUPS_CMS.Models.PostGrid
@{
    ViewBag.Title = "Details";
}
@section Pagename
{
    <h2>
        Article Details</h2>
}
<script type="text/javascript">
    $(document).ready(function () {
        var imagealt = $('#imgpost').attr("alt");
        if (imagealt == "") {
            $('#imgpost').hide();
        }
        else {
            $('#imgpost').show();
        }
    })
</script>
<center>
    <h2>
        <b>@Model.posttitle</b></h2>
</center>
Category:<b>@Model.categoryname</b>
<br />
Post Status:<b>@Model.viewtype</b>
<div class="row">
    <div class="span14">
        @Html.Raw(Model.postdescription)
    </div>
    <div class="span5" style="padding-left:30px">
        <img width="200" height="200" id="imgpost"  src="@Url.Action("PostPicture", "Post", new { id = Model.postidPK })" alt="@Model.filename" />
    </div>
</div>
<p>
    @Html.ActionLink("Back to List", "Index")
</p>
